package com.example.gymmanagement.Utils;

import javax.sound.sampled.DataLine;
import java.io.Serializable;

public class Result implements Serializable {

    private static final long serialVersionUID =1l;
    private Object data;
    private Integer code;
    private String msg;
    private String token;

    public Result() {
    }

//    public Result(Integer code, Object data) {
//        this.data = data;
//        this.code = code;
//    }

    public Result(Integer code, String msg) {
        this.msg = msg;
        this.code = code;
    }
    public Result(Integer code, Object data, String msg) {
        this.data = data;
        this.code = code;
        this.msg = msg;
    }
    public Result(Integer code,Object data,String token,String msg){
        this.code = code;
        this.data = data;
        this.token = token;
        this.msg = msg;
    }



    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Object getData() {
        return this.data;
    }


    public void setData(Object data) {
        this.data = data;
    }

    public Integer getCode() {
        return this.code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
